import {fetch_get, fetch_post} from '../_utils/request'
import { baseUrl } from '../../config/index'

// 删除考试成绩
export async function login_code(data){
  return fetch_post({
    url:baseUrl+"login/wechat",
    method:"POST",
    data:{
      code:data.code
    }
  })
}


export async function login(data){
  return fetch_post({
    url:baseUrl+"login",
    method:"POST",
    data:{
      username:data.username,
      password:data.password
    }
  })
}